package com.itheima.zhaohang.ccalljava;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by 赵航 on 2017/7/16.
 */

public class ToastShown {

    public static Toast toast;
    public static void Shown(Context context,String text){
        if (toast==null){
            Toast.makeText(context, text, Toast.LENGTH_SHORT);
        }else {
            toast.setText(text);
        }

        toast.show();

    }
}
